package com.it.base.core.system.dept.model.from;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.it.base.support.validator.AddGroup2;
import com.it.base.support.validator.UpdateGroup1;
import com.it.base.support.validator.UpdateGroup2;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class SysDeptUpdateFormDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	@NotNull(message = "主键必填")
	@NotBlank(message = "主键必填")
	private String id;

	@ApiModelProperty(name = "parentId", value = "父部门id", dataType = "String", required = true)
	@NotBlank(message = "父部门id")
	private String parentId;

	/**
	 * 部门名称
	 */
	@ApiModelProperty(name = "deptName", value = "部门名称", dataType = "String", required = true)
	@NotBlank(message = "部门名称")
	private String deptName;

	/**
	 * 显示顺序
	 */
	@ApiModelProperty(name = "orderNum", value = " 显示顺序", dataType = "Int", required = true)
	@Min(message = " 显示顺序最小为0", value = 0)
	private int orderNum;

	/**
	 * 负责人
	 */
	@ApiModelProperty(name = "leader", value = "负责人", dataType = "String", required = true)
	private String leader;

	/** 联系电话  */
	@ApiModelProperty(name = "phone", value = "联系电话", dataType = "String")
	private String phone;

	/**
	 * 状态
	 */
	@ApiModelProperty(name = "status", value = "状态", dataType = "String", required = true)
	@Min(message = "状态值只能为-1或0", value = -1)
	@Max(message = "状态值只能为-1或0", value = 0)
	private Integer status;
}
